import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import NavList from '@/components/nav-list'
import Index from '@/components/index'
import Chinese from '@/components/chinese'
import Math from '@/components/Math'
import English from '@/components/English'

Vue.use(Router)

export default new Router({
  mode: 'history',
  // 配置全局高亮标识class
  linkActiveClass: "active",
  routes: [
     {
	      path: '/nav-list',
	      name: 'NavList',
	      component: NavList
     },
      {
        path: '/',
        name: 'Index',
        component: Index
     },
      {
        path: '/chinese',
        name: 'Chinese',
        component: Chinese
     },
      {
        path: '/math',
        name: 'Math',
        component: Math
     },
      {
        path: '/english',
        name: 'English',
        component: English
     }
  ]
})
